module.exports = (req, res) => {
  require('../util/service').handlePost(req, res, async (reqObj, resolve) => {
    if(!reqObj.code) {
      resolve({
        result: -1,
        msg: 'code invalid',
      })
      return
    }
    require('../util/getHtml')({
      url: 'https://oauth.taobao.com/token',
      data: 'code=xMuBtklMeuxr0AujfjOZ3lht1&grant_type=authorization_code&client_id=12304977&client_secret=9288fb99669a14b6a9bf28e49b270f98&redirect_uri=http://www.oauth.net/2/'
    }).then(result => {
      var obj = JSON.parse(result)

    })
  })
}
